<?php

$number = 543;
printf("Decimal:%d<br/>", $number);
printf("Binary:%b<br/>", $number);
printf("Double:%d<br/>", $number);
printf("Octal:%o<br/>", $number);
printf("String:%s<br/>", $number);
printf("Hex (lower):%x<br/>", $number);
printf("Hex (upper):%X<br/>", $number);

?>

<?php

$red = 204;
$green = 204;
$blue = 204;
printf("#%X%X%X<br/>", $red, $green, $blue);


?>